// 健康数据模型
export interface HealthData {
  id: string;
  type: 'bloodSugar' | 'bloodPressure' | 'heartRate' | 'weight' | 'exercise';
  value: number | BloodPressureReading | ExerciseData;
  timestamp: Date;
  unit: string;
  source: 'manual' | 'device' | 'import';
}

// 血压读数模型
export interface BloodPressureReading {
  systolic: number; // 收缩压
  diastolic: number; // 舒张压
}

// 运动数据模型
export interface ExerciseData {
  duration: number; // 持续时间（分钟）
  intensity: 'low' | 'medium' | 'high';
  calories: number;
  steps?: number;
}

// 健康数据趋势模型
export interface HealthDataTrend {
  type: 'daily' | 'weekly' | 'monthly';
  startDate: Date;
  endDate: Date;
  dataPoints: HealthDataPoint[];
}

export interface HealthDataPoint {
  timestamp: Date;
  value: number;
}